package org.walkerljl.commons.util;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import org.walkerljl.commons.exception.AppException;

/**
 * UrlDecoderUtils 
 *
 * @author lijunlin
 */
public class UrlDecoderUtils {

	public static String decode(String string, String encoding) {
		try {
			return URLDecoder.decode(string, encoding);
		} catch (UnsupportedEncodingException e) {
			throw new AppException(e);
		}
	}
}
